package com.wxb.service.impl;

import com.wxb.domain.MallGoodsEntity;
import com.wxb.mapper.MallGoodsMapper;
import com.wxb.service.IMallGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Date 2025-05-30 10:54
 * @Version 1.0
 * @Description
 * @ClassName MallGoodsServiceImpl
 **/
@Service
public class MallGoodsServiceImpl implements IMallGoodsService {
    @Autowired
    private MallGoodsMapper goodsDao;


    public MallGoodsEntity queryObject(Integer id) {
        return goodsDao.queryObject(id);
    }


    public List<MallGoodsEntity> queryList(Map<String, Object> map) {
        return goodsDao.queryList(map);
    }


    public int queryTotal(Map<String, Object> map) {
        return goodsDao.queryTotal(map);
    }


    public void save(MallGoodsEntity goods) {
        goodsDao.save(goods);
    }


    public void update(MallGoodsEntity goods) {
        goodsDao.update(goods);
    }


    public void delete(Integer id) {
        goodsDao.delete(id);
    }


    public void deleteBatch(Integer[] ids) {
        goodsDao.deleteBatch(ids);
    }

    public List<MallGoodsEntity> queryHotGoodsList(Map<String, Object> map) {
        return goodsDao.queryHotGoodsList(map);
    }

    public List<MallGoodsEntity> queryCatalogProductList(Map<String, Object> map) {
        return goodsDao.queryCatalogProductList(map);
    }
}
